<style>
    .vbox .padder{padding: 0;}
    .vbox .padder .pull-in{margin: 0 auto;}
    .vbox .scrollable .panel-default .th_top{width: 100%;}
    .vbox .scrollable .panel-default .th_top .th_all{width: 25%;float: left;overflow: hidden;height: 90px;border: 1px solid #e4e4e4;}
    .vbox .scrollable .panel-default .th_top .th_all img{float: left;display: block;margin: 20px;}
    .vbox .scrollable .panel-default .th_top .th_all div{float: left;height: 100%;}
    .vbox .scrollable .panel-default .th_top .th_all div label{display: block;height: 30px;font-size: 20px;margin-top: 15px;color: black;}
    .vbox .scrollable .panel-default .th_top .click_val div a{display: block;}
    .vbox .scrollable .panel-default .th_top .click_val div a:hover{color: #2894FF;}
    .vbox .scrollable .panel-default .th_top .click_val div label{cursor: pointer;}
    
    .vbox .scrollable .panel-default .title_top{height: 50px;line-height: 50px;font-size: 24px;color: #555555;margin-top: 30px;width: 100%;border: 1px solid #e4e4e4;border-bottom: none;}
    .vbox .scrollable .panel-default .statistics_top{width: 100%;}
    .vbox .scrollable .panel-default .statistics_top table{width: 99.6%;border-collapse:collapse;width: 99%\0;}
    .vbox .scrollable .panel-default .statistics_top table thead tr th{border: 1px solid #e4e4e4;padding: 10px 13px;width: 50%;border-bottom: none;}
    
    .vbox .scrollable .panel-default .statistics{width: 100%;max-height: 480px;border: 1px solid #e4e4e4;overflow-y: auto;}
    .vbox .scrollable .panel-default .statistics table{border-collapse:collapse;width: 100%;}
    .vbox .scrollable .panel-default .statistics table tr td{border: 1px solid #e4e4e4;padding: 10px 13px;width: 50%;}
    .vbox .scrollable .panel-default .statistics table tr.click_th:hover{background-color: #EFEFEF;}
</style>
<section class="vbox">
    <section class="scrollable padder">
        <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
            <li><a href="#"><i class="fa fa-home"></i>首页</a></li>
        </ul>
        <section class="panel panel-default">
            <div class="th_top">
                <div class="th_all click_val">
                    <img src="/public/assets/sysadmin/mylzp/img/xl_1.png" />
                    <div>
                        <a href="<?=$this->url('order/processed')?>">
                            <label><?=isset($dcOrder)?$dcOrder['a']:0?></label>
                            <span>待入住订单</span>
                        </a>
                    </div>
                    <div style="clear: both;"></div>
                </div>
                <div class="th_all click_val">
                    <img src="/public/assets/sysadmin/mylzp/img/xl_1.png" />
                    <div>
						<a href="<?=$this->url('order/todayCheck')?>">
                            <label><?=isset($jrOrder)?$jrOrder['a']:0?></label>
                            <span>已入住订单</span>
                        </a>
                    </div>
                    <div style="clear: both;"></div>
                </div>
                <div class="th_all click_val">
                    <img src="/public/assets/sysadmin/mylzp/img/xl_1.png" />
                    <div>
						<a href="<?=$this->url('order/total')?>">
							<label><?=isset($total)?$total['a']:0?></label>
							<span>全部订单</span>
						</a>
                    </div>
                    <div style="clear: both;"></div>
                </div>
                <div class="th_all">
                    <img src="/public/assets/sysadmin/mylzp/img/xl_2.png" />
                    <div>
                        <label><?=empty($time)||count($time)<2?'无':date('m-d',$time[1]['logintime']).' '.date('H:i:s',$time[1]['logintime'])?></label>
                        <span>上次登录时间</span>
                    </div>
                    <div style="clear: both;"></div>
                </div>
                <div style="clear: both;"></div>
            </div>
            <div class="title_top"><b>最近30天收入统计</b></div>
            <div class="statistics_top">
                <table>
                    <thead>
                        <tr><th>时间</th><th>总收入</th></tr>
                    </thead>
                </table>
            </div>
            <div class="statistics">
                <table>
                    <tbody>
                        <?
                        if($allPrice){
                            foreach($allPrice as $k=>$v){?>
                                <tr class="click_th" style="cursor: pointer;" onclick="get_order('<?=$v['time']?>')">
                                    <td><?=$v['time']?></td><td><?=$v['price']?> 元</td>
                                </tr>
                            <?}
                        }
                        ?>
                    </tbody>
                </table>
            </div>
        </section>
    </section>
</section>
<a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a>
<script type="text/javascript">
function get_order(statime){
    var href="<?=$this->url('order/total')?>?statime="+statime;
    window.location.href=href;
}
</script>